<?php
namespace Home\Logic;

class SiteThemeTplLogic {
	
	/**
	 * 获得栏目模板
	 * @param string $tplConfig
	 */
	public function getCategoryTpl( $tplConfig, $tplType ) {
		$tplId = $tplConfig[$tplType];
	     if( $tplId ) {
			$themeTpl = M("ThemeTpl")->find( $tplId );
			if( $themeTpl ) return $themeTpl['file'];
		}
		return null; 
	}
	
}